<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>window.open window.close</title>
</head>
<body>


<h2>window.close--if this window is opened by js, then it can be closed bu firefox</h2>
<input type="button" value="closeWin" onclick="window.close()"/>


</script>
</body>
</html>